Skip to content

Skip the Playwright browser download in CI - #644

Open
nodeselector wants to merge 1 commit into
mainfrom
nodeselector-ci-skip-playwright-browser
Open

nodeselector wants to merge 1 commit into
mainfrom
nodeselector-ci-skip-playwright-browser

Conversation

@nodeselector

@nodeselector nodeselector commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • build fails on the ubuntu-26.04 runner image: npm ci runs the @playwright/browser-chromium postinstall (pulled in by @vscode/test-web), which exits with Playwright does not support chromium on ubuntu26.04-x64.
  • CI never launches a browser. Only the local open-in-browser script needs Chromium, so the workflows now set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 instead of pinning runs-on to an older image.
  • Applied to every workflow that installs packages: build, build-preview, publish and release.

Testing: reproduced the failure in an ubuntu:26.04 container with Node 16. Re-running the Chromium postinstall with the variable set skips the download and succeeds. Build, lint and tests pass locally, and CI on this PR runs on the new image.

@vscode/test-web depends on @playwright/browser-chromium, whose postinstall
downloads Chromium. CI never runs a browser, and on the ubuntu-26.04 runner
image the download fails with "Playwright does not support chromium on
ubuntu26.04-x64", which breaks npm ci.
@nodeselector
nodeselector requested a review from a team as a code owner November 25, 2026 22:39
Copilot AI adaptive review requested due to automatic review settings November 25, 2026 22:39
@nodeselector
nodeselector added this pull request to stack #645 November 25, 2026 22:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The reviewed workflow updates consistently skip Playwright’s unnecessary Chromium download in CI while leaving local browser development behavior unchanged, with no active review issues identified.

No open issues 🎉

What changed in this PR

Updates GitHub Actions workflows to skip Playwright's Chromium download during CI dependency installation, avoiding failures on unsupported Ubuntu runner images while preserving browser availability for local development.

Changes:

  • Sets PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 at workflow scope.
  • Applies the setting to build, preview, publish, and release workflows.
  • Leaves the local open-in-browser script unaffected.
File Description
.github/​workflows/​release.yml Skips Playwright's Chromium download during release-related dependency installation.
.github/​workflows/​publish.yml Skips Playwright's Chromium download during the publishing workflow's package installation.
.github/​workflows/​build.yml Skips the unnecessary Playwright Chromium download during the main build workflow.
.github/​workflows/​build-preview.yml Skips Playwright's Chromium download during preview dependency installation and packaging.

Review effort: Lite (adaptive)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants